package ModelLayer;
import java.util.ArrayList;

public class Attribute {
    // <editor-fold defaultstate="collapsed" desc="Attributes">
    private int id_attribute;
    private int id_attribute_group;
    private String color;
    private String name;
    private ArrayList<Integer> productAttributeIDs = new ArrayList<Integer>();
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Constructors">
    public Attribute() {
    }

    public Attribute(int id_attribute, int id_attribute_group, String color, String name) {
        this.id_attribute       = id_attribute;
        this.id_attribute_group = id_attribute_group;
        this.color              = color;
        this.name               = name;
    }
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Set & Get Methods">
    //Set & Get: ID
    public void setIDAttribute(int id_attribute) {
        this.id_attribute = id_attribute;
    }
    public int getIDAttribute() {
        return this.id_attribute;
    }

    //Set & Get: ID_Attribute_Group
    public void setIDAttributeGroup(int id_attribute_group) {
        this.id_attribute_group = id_attribute_group;
    }
    public int getIDAttributeGroup() {
        return this.id_attribute_group;
    }

    //Set & Get: color
    public void setColor(String color) {
        this.color = color;
    }
    public String getColor() {
        return this.color;
    }

    //Set & Get: Name
    public void setName(String name) {
        this.name = name;
    }
    public String getName() {
        return this.name;
    }

    //Set & Get: ProductAttributeIDs
    public void setProductAttributeIDs(ArrayList<Integer> productAttributeIDs) {
        this.productAttributeIDs = productAttributeIDs;
    }
    public ArrayList<Integer> getProductAttributeIDs() {
        return this.productAttributeIDs;
    }
    // </editor-fold>
}
